Repository navigation
ci: timestamp the browser lane's test server lines - #1789
Conversation
Timestamp browser script output in serial and parallel lanes while preserving lane summaries and failure-site parsing. Add regression coverage for timestamped output and unchanged summary formats. Part of #897
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 25 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Merge pass. A gate reviewer on a different model than the author's reviewed this CI-tooling change: nothing blocking.
Notes, not blocking:
CI: the first run failed one integration test, CodeRabbit was rate-limited and did not review this PR, so the gate review above stands in for it. All required checks are green and no review thread is open. |
Change
The browser lane's script output is now timestamped line by line, so a line printed by a test's web UI server can be placed against the PASS lines and the job's timings.
scripts/ci-browser-parallel.ts, what CI's two browser jobs run): every line written to a script's own log in.ci/browser-logs/gets an ISO timestamp prefix ([2026-10-23T22:41:05.123Z] …).failureSite()strips the prefix before it looks for the error, sosummary.json's failure site and message are unchanged.scripts/ci-browser.sh): script output lines get adate -Isprefix.PASS …/FAIL …lines, theTIMING …lines and the summary table keep their exact format.TIMINGand the lane total: the script runsset -euo pipefail, so the pipe keeps it.Part of #897: its second item (the empty fork-PR failures of 2026-10-06) is an investigation of those runs, not a code change, and stays open.
Checks
Unit tests:
HERDR_TEST_MODE=unit bun test scripts/ci-browser.test.ts scripts/ci-browser-parallel.test.ts: 5 pass, 0 fail.bun): a server line is prefixed. The PASS/FAIL lines, theTIMING … exit=7line, the summary row andBrowser lane total: … exit=7are unchanged.failureSite()still finds the error.With the prefixes removed, the parallel test fails.
bun run typecheck: passes.bun run check fast: passes (unit 6259 pass, 0 fail, 13 skip in 444 files, 8 at a time, 58.9s).Proof on CI: this PR's own browser jobs are the end-to-end check. Their uploaded
browser-logsshould show the timestamps.Outside PRs that touch the same files
The outside PR #1652 (Copilot native chat) also edits
scripts/ci-browser.shandscripts/ci-browser.test.tsand will need a rebase after this one.No changelog fragment: CI only.